//
//  NSObject+QObject.m
//  QoilPublic
//
//  Created by 杨凯 on 16/7/8.
//  Copyright © 2016年 杨凯. All rights reserved.
//

#import "NSObject+QObject.h"
#import "MJExtension.h"

@implementation NSObject (QObject)

+ (instancetype)objectFromDict:(NSDictionary*)dict {
    return [self mj_objectWithKeyValues:dict];
}

+ (instancetype)objectArrFromDictArr:(NSArray*)dictArr {
    return [self mj_objectArrayWithKeyValuesArray:dictArr];
}

- (NSDictionary*)dictFromObject {
    return [self mj_keyValues];
}

+ (NSArray*)dictArrFromObjectArr:(NSArray*)objArr {
    return [self mj_keyValuesArrayWithObjectArray:objArr];
}

@end
